vmap: avoid hitting an ASSERT with vfree(NULL)
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 21 May 2015 06:57:19 +0000 (08:57 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 21 May 2015 06:57:19 +0000 (08:57 +0200)
commit640f891eb258563bb155e577389e8c5e6541a59a
tree0280412ae0b3c291f68d60a69967349961d3db4e
parentcb1daee1b505aafe9f6fd79a5e5b789be4674c1d
vmap: avoid hitting an ASSERT with vfree(NULL)

and unconditionally defer the vm_size() call, as it doesn't have a NULL
short circuit.

Reported-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Tested-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/common/vmap.c